﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="manager.aspx.vb" Inherits="WebMap.manager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
            <asp:ListItem Selected="True" Value="1">一周</asp:ListItem>
            <asp:ListItem Value="2">两周</asp:ListItem>
            <asp:ListItem Value="3">一月</asp:ListItem>
        </asp:DropDownList>
        内留言</div>
     <div>
         <asp:GridView ID="gvMain" runat="server" CellPadding="4" EmptyDataText="fsafasffsa"
                ForeColor="Black" Width="800px" AutoGenerateColumns="False" BackColor="White"
                BorderColor="#DEDFDE" BorderStyle="Solid" BorderWidth="1px" GridLines="Vertical"
                RowStyle-Height="20px">
                <RowStyle BackColor="#F7F7DE" />
                <Columns>
                    <asp:TemplateField HeaderText="Id">
                        <ItemTemplate>
                            <span>
                                <%#Eval("id")%></span>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle Wrap="False" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="时间">
                        <ItemTemplate>
                            <span>
                                <%#Eval("mtime")%></span>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle Wrap="False" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="留言">
                        <ItemTemplate>
                            <span>
                                <%#Eval("msg")%></span>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle Wrap="False" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <a href="javascript:void();"   onclick=showitemedit("edit",'<%#Eval("id") %>')>编辑</a>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle Wrap="False" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemTemplate>
                            <a href="javascript:void();"     onclick=delitem('<%#Eval("id") %>')>删除</a>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle Wrap="False" HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <EmptyDataTemplate>
                    &nbsp;&nbsp; &nbsp;
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
